<?php
namespace App\Core\Response;

use App\Core\Entity\Message\ResponseSuccess as MessageResponseSuccess;

/**
 * 定义成功 Response 结构的唯一入口
 */
class ResponseSuccess implements ResponseInterface
{

    private $response;

    public function __construct()
    {
        $this->response = new MessageResponseSuccess();
    }

    public function setResponseData($data)
    {
        $this->response->setResponseData($data);
        return $this;
    }

    public function getResponse()
    {
        return $this->response->getResponse();
    }
}